<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#d1{
				height: 50px;
				border: 1px solid red;
			}
			#d2>div{
				height: 30px;
				border: 1px solid pink;
			}
			#d1>button{
				width: 60px;
				height: 40px;
				border-radius: 10px;
				border: none;
				margin: 5px;
			}
			#d2>div{
				display: none;
			}
			.col{
				background-color: skyblue;
			}
			div#d2>.block{
				display: block;
			}
		</style>
	</head>
	<body>
		<div id="app">
			<div id="d1">
				<button type="button" class="col">上单</button>
				<button type="button">打野</button>
				<button type="button">中单</button>
				<button type="button">ADC</button>
				<button type="button">辅助</button>
			</div>
			<div id="d2">
				<div class="block">上路带线,不知去向</div>
				<div>打野gank,离奇失踪</div>
				<div>中单游走,闪现空大</div>
				<div>AD输出,扭头就跑</div>
				<div>辅助插眼,至今未归</div>
			</div>
		</div>
	</body>
	<script src="../../jQuery/jquery-1.12.4.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("button").click(function(){
				$(this).addClass("col").siblings().removeClass("col");
				$("div#d2>div:eq("+$(this).index()+")").addClass("block").siblings().removeClass("block");
			});
		})
	</script>
</html>
